<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false" %>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>修改密码</title>
	<link rel="stylesheet" type="text/css" href="../css/common.css">
	<link rel="stylesheet" href="../css/password.css">
	<!--导入jquery-->
	<script src="../plugins/jquery-3.3.1.js"></script>
	<script src="../validate/jquery.validator.min.js"></script>
	<script src="../validate/local/zh-CN.js"></script>
	<link href="../validate/jquery.validator.css" rel="stylesheet">

	<script>
        $(function () {
            $(".botton").click(function () {
                var s = $("#username").val();
                $.get("/travel/system/userInfo/sendVd",{username:s},function () {
                });
            });

            $("#username").blur(function () {
                var s = $("#username").val();
                $("#passwordForm").prop("action","/travel/system/userInfo/jump?username="+s);
            });
        });
	</script>
</head>
<body>
<div class="rg_layout">
	<div class="rg_form clearfix">
		<div class="rg_form_left">
			<p>修改密码</p>
			<p>UPDATE PASSWORD</p>
		</div>
		<div class="rg_form_center">
			<div id="errorMsg" style="color:red;text-align: center"></div>
			<!--注册表单 表单插件异步校验,校验全部通过时直接提交-->
			<form id="passwordForm" action="#" method="post">
				<!--提交处理请求的标识符-->
				<input type="hidden" name="action" value="password">
				<table style="margin-top: 25px;">
					<tr>
						<td class="td_left">
							<label for="username">用户名</label>
						</td>
						<td class="td_right">
							<input type="text" id="username" name="username" placeholder="请输入账号" data-rule="用户名:required;username;remote[/travel/system/userInfo/confirmUsername]">
						</td>
					</tr>

					<tr>
						<td class="td_left">
							<label for="check">验证码</label>
						</td>
						<td class="td_right">
							<input type="text" id="check" name="check" placeholder="请输入验证码" data-rule="验证码:required;length[4~50];remote[/travel/system/userInfo/validate]">
						</td>
					</tr>
					<tr>
						<td class="td_left">
						</td>
						<td class="td_right check">
							<input type="submit" class="submit" value="完成">
							<input type="button" href="" value="点击获取验证码" class="botton">
						</td>
					</tr>
				</table>
			</form>
		</div>
	</div>
</div>
</body>
</html>